The following tables list the members exposed by SynchronizedDictionary<TKey,TValue>.
Name | Description | |
---|---|---|
SynchronizedDictionary<TKey,TValue> Constructor | Overloaded. |
Name | Description | |
---|---|---|
Count | Gets the number of elements contained in the ICollection. | |
IsReadOnly | Gets a value indicating whether the ICollection is read-only. | |
Item | Gets or sets the element with the specified key. | |
Keys | Gets an ICollection containing the keys of the IDictionary. | |
Lock | Exposes the interal lock so that you can syncronize several calls | |
Values | Gets an ICollection containing the values in the IDictionary. |
Name | Description | |
---|---|---|
Add | Adds an element with the provided key and value to the IDictionary. | |
AddOrUpdate | Overloaded. Adds a key/value pair to the IDictionary if the key does not already exist, or updates a key/value pair if the key already exists. | |
Clear | Removes all items from the ICollection. | |
ContainsKey | Determines whether the IDictionary contains an element with the specified key. | |
CopyTo | Copies the elements of the ICollection to an System.Array, starting at a particular System.Array index. | |
Dispose | Defines a method to release allocated resources. | |
GetEnumerator | Returns an enumerator that iterates through the collection. | |
GetOrAdd | Overloaded. Adds a key/value pair to the IDictionary if the key does not already exist. | |
Remove | Removes the element with the specified key from the IDictionary. | |
ReplaceStorage | Locks the collection and replaces the underlying storage dictionary. | |
TryAdd | Overloaded. Adds an element with the provided key and value to the IDictionary. | |
TryGetValue | Gets the value associated with the specified key. | |
TryRemove | Overloaded. Removes the element with the specified key from the IDictionary. | |
TryUpdate | Overloaded. Updates an element with the provided key to the value if it exists. |